<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<%


    Boolean isHasCustomer = false;




%>



<ul class="layui-nav layui-bg-blue" lay-filter="" style="margin-bottom: 0px;text-align: center;">
    <li class="layui-nav-item"><a href="${ctx}/">二手汽车平台</a></li>
    <li class="layui-nav-item"><a href="${ctx}/carIndex.jsp?state=4" >车辆查询 </a></li>

    <li class="layui-nav-item"><a href="${ctx}/view/front/carCircle/carCircleList.jsp?state=4">车友圈</a></li>
    <li class="layui-nav-item"><a href="${ctx}/view/front/liuyan/liuyanList.jsp">留言板</a></li>

    <c:if test="${sessionScope.username == null}">
        <li class="layui-nav-item"><a href="${ctx}/view/back/admin/login.jsp">登录</a></li>
    </c:if>

    <c:if test="${sessionScope.depart == 22}">

    <li class="layui-nav-item">
        <a href=""><img src="${sessionScope.avatar}"
                        class="layui-nav-img">${sessionScope.username}-会员
        </a>
    </li>


        <li class="layui-nav-item"><a href="${ctx}/view/customer/customer/car/myCarList.jsp" > 我的二手车</a></li>
        <li class="layui-nav-item"><a href="${ctx}/view/customer/customer/collection/myCollectionList.jsp">我的收藏</a></li>
        <li class="layui-nav-item"><a href="${ctx}/view/customer/customer/liuyan/myLiuyanList.jsp">我的留言</a></li>
        <li class="layui-nav-item"><a href="${ctx}/view/customer/customer/customerDetail.jsp">个人中心</a></li>
        <li class="layui-nav-item"><a href="${ctx}/view/back/admin/doLgin.jsp?state=222">退出登录</a></li>


    </c:if>


</ul>


